#include "mystdio.h"
#include<string.h>

int main()
{
    MyFile *filep = MyFopen("./log.txt","a");
    if(!filep)
    {
        printf("fopen error\n");
        return 1;
    }

    char *msg = (char*)"hello myfile!\n";
    MyFwrite(filep, msg, strlen(msg));

    MyFclose(filep);
    return 0;
}
